<!doctype html>
<!--[if lt IE 7]> <html class="no-js ie6" lang="en"> <![endif]-->
<!--[if IE 7]>    <html class="no-js ie7" lang="en"> <![endif]-->
<!--[if IE 8]>    <html class="no-js ie8" lang="en"> <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js" lang="en"> <!--<![endif]-->
    <head>

        <meta charset="utf-8" />

        <!-- Always force latest IE rendering engine (even in intranet) & Chrome Frame -->
        <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />

        <title>Aplikasi Managemen Seminar Ilmiah</title>

        <meta name="description" content="" />

        <!-- Mobile viewport optimized: j.mp/bplateviewport -->
        <meta name="viewport" content="width=device-width, initial-scale=1.0" />

        <link href="script/style.css" rel="stylesheet" />
        <link href="http://fonts.googleapis.com/css?family=Droid+Serif:regular,bold" rel="stylesheet" /> <!-- Load Droid Serif from Google Fonts -->

        <!-- All JavaScript at the bottom, except for Modernizr and Respond.
        Modernizr enables HTML5 elements & feature detects; Respond is a polyfill for min/max-width CSS3 Media Queries -->
    </head>
    <body onload="framebreakout()">
        <div id="wrapper">
            <header id="header" class="clearfix" role="banner">
                <hgroup>
                    <h1 id="site-title"><a href="index.php">Seminar Ilmiah</a></h1>
                    <h2 id="site-description">LPPM Politeknik Telkom</h2>
                </hgroup>
            </header> 
            <div id="main" class="clearfix">
                <nav id="menu" class="clearfix" role="navigation">
                    <ul>
                        <li><a href="index.php"><b>Beranda</b></a></li>
                        <li><a href="aboutUs.php">Tentang Kami</a></li>
                        <li><a href="contactUs.php">Kontak</a></li>
                        <li><a href="help.php">Bantuan</a></li>
                    </ul>
                </nav> 
                <div id="content" role="main">
                    <table border="0" cellpadding="2" cellspacing="2">
                        <?php
                        include("utility/connection.php");
                        include("utility/general.php");
                        include("model/mSeminar.php");
                        session_start();
                        $infoSeminarAktif = fnInfoSeminarAktif();
                        if ($infoSeminarAktif) {
                            while ($rowSeminarAktif = mysql_fetch_row($infoSeminarAktif)) {
                                $Tema = $rowSeminarAktif[1];
                                $DetilTema = $rowSeminarAktif[2];
                                $Tempat = $rowSeminarAktif[3];

                                $Tanggal = $rowSeminarAktif[4];
                                $digitTgl = substr($Tanggal, -2, 2);
                                $digitBulan = fnConvertMonth(substr($Tanggal, -5, 2));
                                $digitTahun = substr($Tanggal, 0, 4);
                                $Tgl = $digitTgl . ' ' . $digitBulan . ' ' . $digitTahun;

                                $Waktu = $rowSeminarAktif[5];

                                $TglAwalDaftar = $rowSeminarAktif[6];
                                $digitTgl1 = substr($TglAwalDaftar, -2, 2);
                                $digitBulan1 = fnConvertMonth(substr($TglAwalDaftar, -5, 2));
                                $digitTahun1 = substr($TglAwalDaftar, 0, 4);
                                $TglDaftar1 = $digitTgl1 . ' ' . $digitBulan1 . ' ' . $digitTahun1;

                                $TglAkhirDaftar = $rowSeminarAktif[7];
                                $digitTgl2 = substr($TglAkhirDaftar, -2, 2);
                                $digitBulan2 = fnConvertMonth(substr($TglAkhirDaftar, -5, 2));
                                $digitTahun2 = substr($TglAkhirDaftar, 0, 4);
                                $TglDaftar2 = $digitTgl2 . ' ' . $digitBulan2 . ' ' . $digitTahun2;
                                ?>
                                <tr>            
                                    <td>
                                        <table border="0" cellpadding="2" cellspacing="2">
                                            <tr>
                                                <td>Topik</td>
                                                <td>&nbsp;:&nbsp;</td>
                                                <td><?php echo $Tema ?></td>
                                            </tr>
                                            <tr>
                                                <td>Detail&nbsp;Topik</td>
                                                <td>&nbsp;:&nbsp;</td>
                                                <td><?php echo $DetilTema ?></td>
                                            </tr>
                                            <tr>
                                                <td>Tempat</td>
                                                <td>&nbsp;:&nbsp;</td>
                                                <td><?php echo $Tempat ?></td>
                                            </tr>
                                            <tr>
                                                <td>Tanggal</td>
                                                <td>&nbsp;:&nbsp;</td>
                                                <td><?php echo $Tgl ?></td>
                                            </tr>
                                            <tr>
                                                <td>Waktu</td>
                                                <td>&nbsp;:&nbsp;</td>
                                                <td><?php echo $Waktu ?></td>
                                            </tr>
                                            <tr>
                                                <td>Pendaftaran</td>
                                                <td>&nbsp;:&nbsp;</td>
                                                <td><?php echo $TglDaftar1 ?>&nbsp;s.d.&nbsp;<?php echo $TglDaftar2 ?></td>
                                            </tr>
                                        </table>
                                    </td>
                                </tr>
                                <?php
                            }
                        }
                        ?>
                    </table>
                </div> 
                <aside id="sidebar" role="complementary">
                    <aside class="widget">
                        <?php
                        if (isset($_GET['message'])) {
                          echo "<span class='error'>".$_GET['message']."</span>";
                        }
                        ?>
                        <form class="validation" action="logic/login.php" method="post">
                            <fieldset>
                                <p>
                                    <label for="username">Username</label>
                                    <input type="text" name="txtLoginId" id="txtLoginId" size="20" maxlength="10" required=""/>
                                </p>
                                <p>
                                    <label for="pasword">Password</label>
                                    <input type="password" name="txtPassword" id="txtPassword" size="20" maxlength="10" required=""/>
                                </p>
                                <p>
                                    <input type="submit" name="btSubmit" value="Submit" id="btSubmit" onclick="fnSubmit()" />

                                </p>
                                <p>
                                    <label>Jika anda tidak memiliki akun, untuk mendaftar klick <u><a href="ui/user/newUser.php">Sign-Up</a></u></label>
                                </p>
                            </fieldset>
                        </form>
                        <p class="hide" id="response"></p>


                    </aside>





                </aside> 

            </div> <!-- #main -->

            <!--            <footer id="footer">
                             You're free to remove the credit link to Jayj.dk in the footer, but please, please leave it there :) 
                            <p>
                                Copyright &copy; 2011 <a href="#">Sitename.com</a>
                                <span class="sep">|</span>
                                Design by <a href="http://jayj.dk" title="Design by Jayj.dk">Jayj.dk</a>
                            </p>
                        </footer>  #footer -->

            <div class="clear"></div>

        </div> <!-- #wrapper -->

        <!-- JavaScript at the bottom for fast page loading -->
        <script src="js/jquery.js"></script>

        <script type="text/javascript">
        function framebreakout() {
                if (top.location != location) {
                        top.location.href = document.location.href;
                }
        }
        function fnSubmit() {
            document.indexForm.method = 'POST';
            document.indexForm.action = '';
            document.indexForm.submit();
        }

        </script>
        <script src="js/jquery.validate.min.js"></script>
        <script src="js/script.js"></script>
    </body>
</html>